package com.wing.product.model.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Schema(description="出库订单明细表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_outbound_order_detail")
public class WarehouseOutboundOrderDetail extends BaseEntity<WarehouseOutboundOrderDetail> {

    @TableField(value = "warehouse_outbound_order_id")
    @Schema(description="出库订单id")
    private Long warehouseOutboundOrderId;

    @TableField(value = "product_code")
    @Schema(description="产品sku")
    private String productCode;

    @TableField(value = "product_producer_id")
    @Schema(description="厂家id")
    private Long productProducerId;

    @TableField(value = "product_producer")
    @Schema(description="厂家名称")
    private String productProducer;

    @TableField(value = "product_brand_id")
    @Schema(description="品牌id")
    private Long productBrandId;

    @TableField(value = "product_brand")
    @Schema(description="品牌名称")
    private String productBrand;

    @TableField(value = "product_variety_id")
    @Schema(description="品种id")
    private Long productVarietyId;

    @TableField(value = "product_variety")
    @Schema(description="品种名称")
    private String productVariety;

    @TableField(value = "product_mark_id")
    @Schema(description="牌号id")
    private Long productMarkId;

    @TableField(value = "product_mark")
    @Schema(description="牌号名称")
    private String productMark;

    @TableField(value = "product_main_unit_id")
    @Schema(description="单位id")
    private Long productMainUnitId;

    @TableField(value = "product_main_unit")
    @Schema(description="单位名称")
    private String productMainUnit;

    @TableField(value = "gross_weight")
    @Schema(description="毛重")
    private BigDecimal grossWeight;

    @TableField(value = "net_weight")
    @Schema(description="净重")
    private BigDecimal netWeight;

    @TableField(value = "quantity_picked")
    @Schema(description="提货数量")
    private Integer quantityPicked;

    @TableField(value = "product_id")
    @Schema(description="产品id")
    private Long productId;

    @TableField(value = "status")
    @Schema(description="1.待出库2.已出库")
    private Integer status;

}
